package com.banch.cloud.payment.service.impl;

import com.banch.cloud.common.entity.Payment;
import com.banch.cloud.payment.dao.PaymentDao;
import com.banch.cloud.payment.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * payment service implement
 *
 * @author banch
 * @version 1.0
 * @date 2020/5/5
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    /**
     * payment dao
     */
    @Resource
    private PaymentDao paymentDao;

    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getById(Long id) {
        return paymentDao.getById(id);
    }

}